//创建三维模型
//添加地物到跟踪图层
function addStationPic(p) {
	//创建几何对象
	var geoRegion = new SuperMap.Web.Core.GeoRegion3D();
	var pntWN = new SuperMap.Web.Core.Point3D(p.x + 0.002, p.y + 0.00002, 0);
	var pntEN = new SuperMap.Web.Core.Point3D(p.x - 0.002, p.y + 0.00002, 0);
	var pntES = new SuperMap.Web.Core.Point3D(p.x - 0.002, p.y - 0.00002, 0);
	var pntWS = new SuperMap.Web.Core.Point3D(p.x + 0.002, p.y - 0.00002, 0);
	var point3Ds = new SuperMap.Web.Core.Point3Ds();
	point3Ds.add(pntWN);
	point3Ds.add(pntEN);
	point3Ds.add(pntES);
	point3Ds.add(pntWS);
	geoRegion.addPart(point3Ds);

	//跟踪图层中只能加feature3D，所以这里得把geometry构造成feature3D对象
	var feature3d = new SuperMap.Web.Core.Feature3D();
	feature3d.set_geometry(geoRegion);

	var style3d = new SuperMap.Web.Core.Style3D();

	style3d.set_fillForeColor(new SuperMap.Web.Core.Color(255, 255, 0, 255));
	style3d.set_altitudeMode(SuperMap.Web.Realspace.AltitudeMode.RELATIVE_TO_GROUND);
	style3d.set_extendHeight(100);
	style3d.set_bottomAltitude(50);

	var baseStationUrlPrefix = "http://172.16.157.2:8080/Waterworks/pipeline/textureAction/stationTexture/"
	var myUrl = baseStationUrlPrefix+p.code+Math.uuid()+".png";
	var paths=[myUrl,myUrl,myUrl,myUrl];
	style3d.set_sideTextureFiles(paths);
	feature3d.set_style3D(style3d);
	//设置跟踪图层可见
	trackingLayer.set_isVisible(true);
	//将feature3D加入跟踪图层
	trackingLayer.add(feature3d, p.name);
	//scene.get_flyingOperator().flyToBounds(geoRegion.get_bounds());
	return feature3d;
}